package com.platform.config.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Profile;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author liujizheng
 * @version 1.0
 * @ClassName InterceptorConfig
 * @Description 拦截器配置
 * @date 2022/1/18 16:27
 */
@Configuration
@EnableAspectJAutoProxy
@Profile("dev")
public class InterceptorConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        // license校验
//        registry.addInterceptor(new LicenseCheckInterceptor()).addPathPatterns("/oauth/**");
    }
}
